Usage of 'lang' and 'title' attributes
by Gabriele Caniglia <gabriele(at)sideralia.it>
|
Date: |
Wed, 7 Aug 2002 11:51:11 +0200 |
To: |
hwg-techniques(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Hello list,
I was trying to understand the correct usage of 'lang' and 'title'
attributes, particularly in accordance to WAI 1.0 specifications; but
one thing is driving me nuts:
<-a href="http://www.w3.org/TR/REC-DOM-Level-1"
title="[LINK ESTERNO] Collegamento alla Raccomandazione
W3D DOM Level 1">
<-span lang="en">
<-acronym title="Document Object Model">DOM</acronym> Level 1
</span>
</a>
The language of 'DOM Level 1' is English, and DOM is an acronym; the
acronym element inherits the lang attribute from the outer span
element, so it gets English. Outside, the <-a> element keeps the
document language (italian) because its title attribute is expressed
into Italian. Is it right?
Anyway, there are two 'conflicting' title attributes on the 'DOM'
text fragment; and obviously the inner one (acronym) takes
precedence. The browser shows 'DOM Level 1' but if you roll the mouse
cursor over the 'DOM' fragment, you activate the acronym element
title; if you go over the 'Level 1' part, you activate the a element
title.
What am I missing??
Thanks a lot in advance,
--
Gabriele
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA